package tv.acgn.advertisement.search.indexobejct;

import lombok.Builder;
import lombok.Data;

/**
 * @author : junG
 * @program : advertisement-ad-search-index-object
 * @description : 创意索引对象 IndexObject
 * @date : 2019-07-14 20:23
 **/
@Data
@Builder
public class CreativeIO {

    private String creativeId;

    private String name;

    private String type;

    private String materialType;

    private Long height;

    private Long width;

    private Integer duration;

    private Integer auditStatus;

    private String URI;

    /**
     * 空索引对象
     * 避免击穿索引层
     *
     * @return CreativeIO
     */
    public static CreativeIO emptyIO() {
        return CreativeIO.builder()
            .creativeId("empty_CreativeIO")
            .name("未找到索引")
            .build();
    }

}
